﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Presentacion
{
    public partial class Pruebas : Form
    {
        public Pruebas()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string todas = richTextBox1.Text;
            string linea = textBox2.Text;
            if (todas != "")
            {
                todas = todas + "\n" + DateTime.Now.ToShortDateString()+" "+ linea;
            }
            else
            {
                todas = DateTime.Now.ToShortDateString() + " " + linea;
            }


            richTextBox1.Text = todas;

        }

        private void button2_Click(object sender, EventArgs e)
        {

           
        }
    }
}
